using System;
using L=Science.Physics.GeneralPhysics;

namespace Serway.Chapter44
{
	/// <summary>
	/// Example02: The Volume and Density of a Nucleus
	/// For a nucleus of mass number A, find
	/// (A)	an approximate expression for the mass of the nucleus,
	/// (B)	an expression for the volume of this nucleus in terms of A, and 
	/// (C)	a numerical value for its density.
	/// </summary>
	public class Example02
	{
		public Example02()
		{
		}
		private string result;
		public string Result
		{
			get{return result;}
		}
		public void Compute()
		{
			L.Nucleus a = new L.Nucleus();
			a.MassNumber = 1;
			double rho = 1.67E-27/4.0/Math.PI*3.0/Math.Pow(a.Radius,3.0);
			result+=Convert.ToString(rho);
		}
	}
}
